# Last modified 2018-02-14
bcbioRNASeq::prepareRNASeqTemplate()
source("_setup.R")

# Directory paths
data_dir <- file.path(params$output_dir, "data", Sys.Date())
results_dir <- file.path(params$output_dir, "results", "counts")
invisible(mapply(
    FUN = dir.create,
    list(data_dir, results_dir),
    MoreArgs = list(recursive = TRUE, showWarnings = FALSE)
))

# Load bcbioRNASeq object
bcb_name <- load(params$bcb_file)
bcb <- get(bcb_name, inherits = FALSE)
stopifnot(is(bcb, "bcbioRNASeq"))
validObject(bcb)
## [1] TRUE

Overview

  • Principal Investigator:
  • Researcher:
  • Experiment:

R> sampleMetadata(bcb)
##          sampleID sampleName description  group
## day14_12 day14_12   day14_12    day14_12  day14
## day14_13 day14_13   day14_13    day14_13  day14
## day14_14 day14_14   day14_14    day14_14  day14
## day14_15 day14_15   day14_15    day14_15  day14
## day3_4     day3_4     day3_4      day3_4   day3
## day3_5     day3_5     day3_5      day3_5   day3
## day3_6     day3_6     day3_6      day3_6   day3
## day3_7     day3_7     day3_7      day3_7   day3
## day7_10   day7_10    day7_10     day7_10   day7
## day7_11   day7_11    day7_11     day7_11   day7
## day7_8     day7_8     day7_8      day7_8   day7
## day7_9     day7_9     day7_9      day7_9   day7
## normal_1 normal_1   normal_1    normal_1 normal
## normal_2 normal_2   normal_2    normal_2 normal
## normal_3 normal_3   normal_3    normal_3 normal

bcbio run data was imported from /Users/lpantano/orch/hbc/PIs/vishal_vaidya/vishal_mirna_kidney/scientific_data/uuo/mrna/mrna/final.

Count matrices

R> raw_counts <- counts(bcb, normalized = FALSE)
R> normalized_counts <- counts(bcb, normalized = TRUE)
R> tpm <- counts(bcb, normalized = "tpm")
R> vst <- counts(bcb, "vst")
R> saveData(raw_counts, normalized_counts, tpm, dir = data_dir)
R> writeCounts(raw_counts, normalized_counts, tpm, vst, dir = results_dir)

The results are saved as gzip-compressed comma separated values (CSV). Gzip compression is natively supported on macOS and Linux-based operating systems. If you’re running Windows, we recommend installing 7-Zip. CSV files can be opened in Excel or RStudio.

  • normalized_counts.csv.gz: Use to evaluate individual genes and/or generate plots. These counts are normalized for the variation in sequencing depth across samples.
  • tpm.csv.gz: Transcripts per million, scaled by length and also suitable for plotting.
  • raw_counts.csv.gz: Only use to perform a new differential expression analysis. These counts will vary across samples due to differences in sequencing depth, and have not been normalized. Do not use this file for plotting genes.

Read metrics

Total reads

R> plotTotalReads(bcb)

Mapped reads

The number of mapped reads should correspond to the number of total reads.

R> plotMappedReads(bcb)

Mapping rate

The genomic mapping rate represents the percentage of reads mapping to the reference genome. Low mapping rates are indicative of sample contamination, poor sequencing quality or other artifacts.

R> plotMappingRate(bcb)

Number of genes detected

R> plotGenesDetected(bcb)

Gene detection saturation

We should observe a linear trend in the number of genes detected with the number of mapped reads, which indicates that the sample input was not overloaded.

R> plotGeneSaturation(bcb)

Exonic mapping rate

Ideally, at least 60% of total reads should map to exons.

R> plotExonicMappingRate(bcb)

Intronic mapping rate

The majority of reads should map to exons and not introns.

R> plotIntronicMappingRate(bcb)

rRNA mapping rate

Samples should have a ribosomal RNA (rRNA) contamination rate below 10%.

R> plotRRNAMappingRate(bcb)

5’->3’ bias

R> plot53Bias(bcb)

Counts per gene

Generally, we expect similar count spreads for all genes between samples unless the library sizes or total RNA expression are different. The log10 TMM-normalized counts per gene normalization method (Robinson and Oshlack 2010) equates the overall expression levels of genes between samples under the assumption that the majority of them are not differentially expressed. Therefore, by normalizing for total RNA expression by sample, we expect the spread of the log10 TMM-normalized counts per gene to be similar for every sample.

R> plotCountsPerGene(bcb)

Count density

Generally, we expect similar count spreads for all genes between samples unless the total expressed RNA per sample is different.

R> plotCountDensity(bcb)

Fit modeling

Several quality metrics are first assessed to explore the fit of the model, before differential expression analysis is performed.

Variance stabilization

The plots below show the standard deviation of normalized counts (normalized_counts) using log2(), rlog(), and variance stabilizing (vst()) transformations by rank(mean). The transformations greatly reduce the standard deviation, with rlog() stabilizing the variance best across the mean.

R> plotMeanSD(bcb, orientation = "vertical")

Dispersion

The following plot shows the dispersion by mean of normalized counts. We expect the dispersion to decrease as the mean of normalized counts increases.

R> plotDispEsts(bcb)

Sample similarity analysis

Before performing similarity analysis, we transform counts to log2, which acts to minimize large differences in sequencing depth and helps normalize all samples to a similar dynamic range. For RNA-seq count data, variance increases with the mean. Logarithmic transformation of normalized count values with a small pseudocount will account for large variations seen between the highest expressing genes so that these genes won’t dominate the PCA plots. However, due to the strong noise among low count values due to Poisson, the general log2 transformation will amplify this noise, and instead, low count genes will now dominate the PCA plots. So instead, we use a transformation (rlog()) that gives similar results for high counts as a log2 transformation but also shrinks the values of low counts towards the genes’ average across samples. We do this with the rlog() function in the DESeq2 package (Love, Huber, and Anders 2014), which we will later use for differential gene expression analysis.

Principal component analysis (PCA)

PCA (Jolliffe 2002) is a multivariate technique that allows us to summarize the systematic patterns of variations in the data. PCA takes the expression levels for genes and transforms it in principal component space, reducing each sample into one point. Thereby, we can separate samples by expression variation, and identify potential sample outliers. The PCA plot is a way to look at how samples are clustering.

R> plotPCA(bcb)

Covariates correlation with PCs

When multiple factors may influence the results of a given experiment, it is useful to assess which of them is responsible for the most variance as determined by PCA. We adapted the method described by Daily et al. where they integrated a method to correlate covariates with principal components values to determine the importance of each factor.

Here we are showing the correlational analysis of the rlog transformed count data’s principal components with the metadata covariates of interest. Significant correlations (FDR < 0.1) are shaded from blue (anti-correlated) to orange (correlated), with non-significant correlations shaded in gray.

R> plotPCACovariates(bcb)

Hierarchical clustering

Inter-correlation analysis (ICA) is another way to look at how well samples cluster by plotting the correlation between the expression profiles of the samples.

R> plotCorrelationHeatmap(bcb)


Methods

RNA-seq counts were generated by bcbio and bcbioRNASeq using salmon (Patro et al. 2017). Counts were imported into R using tximport (Soneson, Love, and Robinson 2016) and DESeq2 (Love, Huber, and Anders 2014). Gene annotations were obtained from Ensembl. Plots were generated by ggplot2 (Wickham 2009). Heatmaps were generated by pheatmap (Kolde 2015).

R session information

R> mdHeader("YAML params", level = 2)

YAML params

R> print(params)
## $bcb_file
## [1] "../../data/uuo.rda"
## 
## $output_dir
## [1] "../tables/uuo"
R> mdHeader("`devtools::session_info()`", level = 2)

devtools::session_info()

R> devtools::session_info()
##  setting  value                       
##  version  R version 3.4.3 (2017-11-30)
##  system   x86_64, darwin15.6.0        
##  ui       X11                         
##  language (EN)                        
##  collate  en_US.UTF-8                 
##  tz       America/New_York            
##  date     2018-03-26                  
## 
##  package                * version    date      
##  acepack                  1.4.1      2016-10-29
##  affy                     1.56.0     2017-10-31
##  affyio                   1.48.0     2017-10-31
##  annotate                 1.56.0     2017-10-31
##  AnnotationDbi            1.40.0     2017-10-31
##  AnnotationFilter         1.2.0      2017-10-31
##  AnnotationHub            2.10.1     2017-11-08
##  assertive                0.3-5      2016-12-31
##  assertive.base           0.0-7      2016-12-30
##  assertive.code           0.0-1      2015-10-06
##  assertive.data           0.0-1      2015-10-06
##  assertive.data.uk        0.0-1      2015-10-06
##  assertive.data.us        0.0-1      2015-10-06
##  assertive.datetimes      0.0-2      2016-05-10
##  assertive.files          0.0-2      2016-05-10
##  assertive.matrices       0.0-1      2015-10-06
##  assertive.models         0.0-1      2015-10-06
##  assertive.numbers        0.0-2      2016-05-09
##  assertive.properties     0.0-4      2016-12-30
##  assertive.reflection     0.0-4      2016-12-30
##  assertive.sets           0.0-3      2016-12-30
##  assertive.strings        0.0-3      2016-05-10
##  assertive.types          0.0-3      2016-12-30
##  assertthat               0.2.0      2017-04-11
##  backports                1.1.2      2017-12-13
##  base                   * 3.4.3      2017-12-07
##  base64enc                0.1-3      2015-07-28
##  basejump                 0.3.1      2018-03-13
##  bcbioBase              * 0.1.4      2018-03-13
##  bcbioRNASeq            * 0.1.7      2018-03-13
##  bindr                    0.1.0.9000 2018-02-26
##  bindrcpp               * 0.2.0.9000 2018-02-26
##  Biobase                * 2.38.0     2017-10-31
##  BiocGenerics           * 0.24.0     2017-10-31
##  BiocInstaller            1.28.0     2017-10-31
##  BiocParallel             1.12.0     2017-10-31
##  biomaRt                  2.34.2     2018-01-20
##  Biostrings               2.46.0     2017-10-31
##  bit                      1.1-12     2014-04-09
##  bit64                    0.9-7      2017-05-08
##  bitops                   1.0-6      2013-08-17
##  blob                     1.1.0      2017-06-17
##  broom                    0.4.2      2017-02-13
##  cellranger               1.1.0      2016-07-27
##  checkmate                1.8.5      2017-10-24
##  circlize                 0.4.3      2017-12-20
##  cluster                  2.0.6      2017-03-10
##  codetools                0.2-15     2016-10-05
##  colorspace               1.3-2      2016-12-14
##  compiler                 3.4.3      2017-12-07
##  ComplexHeatmap           1.17.1     2017-10-25
##  ConsensusClusterPlus     1.42.0     2017-10-31
##  cowplot                  0.9.2      2017-12-17
##  curl                     3.1        2017-12-12
##  data.table               1.10.4-3   2017-10-27
##  datasets               * 3.4.3      2017-12-07
##  DBI                      0.8        2018-03-02
##  DEGreport              * 1.15.3     2018-03-20
##  DelayedArray           * 0.4.1      2017-11-07
##  dendsort                 0.3.3      2015-12-14
##  DESeq2                 * 1.18.1     2017-11-12
##  devtools                 1.13.4     2017-11-09
##  digest                   0.6.15     2018-01-28
##  dplyr                  * 0.7.4.9000 2018-02-26
##  edgeR                    3.20.9     2018-02-27
##  ensembldb                2.3.5      2017-12-12
##  evaluate                 0.10.1     2017-06-24
##  forcats                  0.2.0      2017-01-23
##  foreign                  0.8-69     2017-06-22
##  formatR                  1.5        2017-04-25
##  Formula                  1.2-2      2017-07-10
##  genefilter               1.60.0     2017-10-31
##  geneplotter              1.56.0     2017-10-31
##  GenomeInfoDb           * 1.14.0     2017-10-31
##  GenomeInfoDbData         0.99.1     2017-10-13
##  GenomicAlignments        1.14.1     2017-11-18
##  GenomicFeatures          1.30.3     2018-02-02
##  GenomicRanges          * 1.30.3     2018-02-26
##  GetoptLong               0.1.6      2017-03-07
##  ggplot2                * 2.2.1      2016-12-30
##  ggrepel                  0.7.0      2017-09-29
##  GlobalOptions            0.0.12     2017-05-21
##  glue                     1.2.0      2017-10-29
##  graphics               * 3.4.3      2017-12-07
##  grDevices              * 3.4.3      2017-12-07
##  grid                     3.4.3      2017-12-07
##  gridExtra                2.3        2017-09-09
##  grr                      0.9.5      2016-08-26
##  gtable                   0.2.0      2016-02-26
##  haven                    1.1.0      2017-07-09
##  hexbin                 * 1.27.1     2016-12-05
##  Hmisc                    4.1-1      2018-01-03
##  hms                      0.3        2016-11-22
##  htmlTable                1.11.2     2018-01-20
##  htmltools                0.3.6      2017-04-28
##  htmlwidgets              1.0        2018-01-20
##  httpuv                   1.3.5      2017-07-04
##  httr                     1.3.1      2017-08-20
##  interactiveDisplayBase   1.16.0     2017-10-31
##  IRanges                * 2.12.0     2017-10-31
##  jsonlite                 1.5        2017-06-01
##  knitr                  * 1.20       2018-02-20
##  labeling                 0.3        2014-08-23
##  lattice                  0.20-35    2017-03-25
##  latticeExtra             0.6-28     2016-02-09
##  lazyeval                 0.2.1      2017-10-29
##  limma                    3.34.9     2018-02-22
##  locfit                   1.5-9.1    2013-04-20
##  logging                  0.7-103    2013-04-12
##  lubridate                1.6.0      2016-09-13
##  magrittr                 1.5        2014-11-22
##  Matrix                   1.2-12     2017-11-20
##  Matrix.utils             0.9.6      2017-08-28
##  MatrixModels             0.4-1      2015-08-22
##  matrixStats            * 0.52.2     2017-04-14
##  memoise                  1.1.0      2017-04-21
##  methods                * 3.4.3      2017-12-07
##  mime                     0.5        2016-07-07
##  mnormt                   1.5-5      2016-10-15
##  modelr                   0.1.1      2017-07-24
##  munsell                  0.4.3      2016-02-13
##  nlme                     3.1-131    2017-02-06
##  nnet                     7.3-12     2016-02-02
##  Nozzle.R1                1.1-1      2013-05-15
##  parallel               * 3.4.3      2017-12-07
##  pheatmap                 1.0.8      2015-12-11
##  pillar                   1.1.0      2018-01-14
##  pkgconfig                2.0.1      2017-03-21
##  plyr                     1.8.4      2016-06-08
##  preprocessCore           1.40.0     2017-10-31
##  prettyunits              1.0.2      2015-07-13
##  progress                 1.1.2      2016-12-14
##  ProtGenerics             1.10.0     2017-10-31
##  psych                    1.7.8      2017-09-09
##  purrr                  * 0.2.4      2017-10-18
##  quantreg               * 5.35       2018-02-02
##  R.methodsS3              1.7.1      2016-02-16
##  R.oo                     1.21.0     2016-11-01
##  R.utils                  2.6.0      2017-11-05
##  R6                       2.2.2      2017-06-17
##  RColorBrewer             1.1-2      2014-12-07
##  Rcpp                     0.12.15    2018-01-20
##  RCurl                    1.95-4.10  2018-01-04
##  rdrop2                   0.8.1.9999 2018-03-22
##  readr                  * 1.1.1      2017-05-16
##  readxl                   1.0.0      2017-04-18
##  reshape                  0.8.7      2017-08-06
##  reshape2                 1.4.3      2017-12-11
##  rjson                    0.2.15     2014-11-03
##  rlang                    0.2.0.9001 2018-03-26
##  rmarkdown                1.6.0.9008 2017-10-31
##  RMySQL                   0.10.14    2018-02-26
##  rpart                    4.1-11     2017-03-13
##  rprojroot                1.2        2017-01-16
##  Rsamtools                1.30.0     2017-10-31
##  RSQLite                  2.0        2017-06-19
##  rstudioapi               0.7        2017-09-07
##  rtracklayer              1.38.3     2018-01-23
##  rvest                    0.3.2      2016-06-17
##  S4Vectors              * 0.16.0     2017-10-31
##  scales                   0.5.0      2017-08-24
##  shape                    1.4.4      2018-02-07
##  shiny                    1.0.5      2017-08-23
##  SparseM                * 1.77       2017-04-23
##  splines                  3.4.3      2017-12-07
##  stats                  * 3.4.3      2017-12-07
##  stats4                 * 3.4.3      2017-12-07
##  stringi                  1.1.6      2017-11-17
##  stringr                  1.3.0      2018-02-19
##  SummarizedExperiment   * 1.8.1      2017-12-19
##  survival                 2.41-3     2017-04-04
##  tibble                 * 1.4.2      2018-01-22
##  tidyr                  * 0.8.0      2018-01-29
##  tidyselect               0.2.3      2017-11-06
##  tidyverse              * 1.1.1      2017-01-27
##  tools                    3.4.3      2017-12-07
##  tximport                 1.6.0      2017-10-31
##  utils                  * 3.4.3      2017-12-07
##  viridis                  0.5.0      2018-02-02
##  viridisLite              0.3.0      2018-02-01
##  vsn                      3.46.0     2017-10-31
##  withr                    2.1.1      2017-12-19
##  XML                      3.98-1.10  2018-02-19
##  xml2                     1.1.1      2017-01-24
##  xtable                   1.8-2      2016-02-05
##  XVector                  0.18.0     2017-10-31
##  yaml                     2.1.18     2018-03-08
##  zlibbioc                 1.24.0     2017-10-31
##  source                              
##  cran (@1.4.1)                       
##  cran (@1.56.0)                      
##  cran (@1.48.0)                      
##  cran (@1.56.0)                      
##  cran (@1.40.0)                      
##  cran (@1.2.0)                       
##  cran (@2.10.1)                      
##  cran (@0.3-5)                       
##  cran (@0.0-7)                       
##  cran (@0.0-1)                       
##  cran (@0.0-1)                       
##  cran (@0.0-1)                       
##  cran (@0.0-1)                       
##  cran (@0.0-2)                       
##  cran (@0.0-2)                       
##  cran (@0.0-1)                       
##  cran (@0.0-1)                       
##  cran (@0.0-2)                       
##  cran (@0.0-4)                       
##  cran (@0.0-4)                       
##  cran (@0.0-3)                       
##  cran (@0.0-3)                       
##  cran (@0.0-3)                       
##  CRAN (R 3.4.0)                      
##  cran (@1.1.2)                       
##  local                               
##  cran (@0.1-3)                       
##  Github (steinbaugh/basejump@9586c85)
##  Github (hbc/bcbioBase@93d2099)      
##  Github (hbc/bcbioRNAseq@330d88d)    
##  Github (krlmlr/bindr@4b20179)       
##  Github (krlmlr/bindrcpp@7553d4f)    
##  cran (@2.38.0)                      
##  cran (@0.24.0)                      
##  cran (@1.28.0)                      
##  cran (@1.12.0)                      
##  cran (@2.34.2)                      
##  cran (@2.46.0)                      
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.0)                      
##  cran (@1.0-6)                       
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.0)                      
##  cran (@1.1.0)                       
##  cran (@1.8.5)                       
##  cran (@0.4.3)                       
##  CRAN (R 3.4.3)                      
##  CRAN (R 3.4.3)                      
##  CRAN (R 3.4.0)                      
##  local                               
##  cran (@1.17.1)                      
##  cran (@1.42.0)                      
##  cran (@0.9.2)                       
##  cran (@3.1)                         
##  CRAN (R 3.4.2)                      
##  local                               
##  cran (@0.8)                         
##  local (lpantano/DEGreport@NA)       
##  cran (@0.4.1)                       
##  cran (@0.3.3)                       
##  Bioconductor                        
##  cran (@1.13.4)                      
##  cran (@0.6.15)                      
##  local                               
##  cran (@3.20.9)                      
##  Github (jotsetung/ensembldb@92268c9)
##  cran (@0.10.1)                      
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.3)                      
##  CRAN (R 3.4.0)                      
##  cran (@1.2-2)                       
##  cran (@1.60.0)                      
##  cran (@1.56.0)                      
##  cran (@1.14.0)                      
##  Bioconductor                        
##  cran (@1.14.1)                      
##  cran (@1.30.3)                      
##  cran (@1.30.3)                      
##  cran (@0.1.6)                       
##  CRAN (R 3.4.0)                      
##  cran (@0.7.0)                       
##  cran (@0.0.12)                      
##  cran (@1.2.0)                       
##  local                               
##  local                               
##  local                               
##  CRAN (R 3.4.1)                      
##  cran (@0.9.5)                       
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.1)                      
##  cran (@1.27.1)                      
##  cran (@4.1-1)                       
##  CRAN (R 3.4.0)                      
##  cran (@1.11.2)                      
##  cran (@0.3.6)                       
##  cran (@1.0)                         
##  CRAN (R 3.4.1)                      
##  CRAN (R 3.4.1)                      
##  cran (@1.16.0)                      
##  cran (@2.12.0)                      
##  CRAN (R 3.4.0)                      
##  cran (@1.20)                        
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.3)                      
##  cran (@0.6-28)                      
##  cran (@0.2.1)                       
##  cran (@3.34.9)                      
##  cran (@1.5-9.1)                     
##  cran (@0.7-103)                     
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.3)                      
##  cran (@0.9.6)                       
##  cran (@0.4-1)                       
##  cran (@0.52.2)                      
##  CRAN (R 3.4.0)                      
##  local                               
##  CRAN (R 3.4.0)                      
##  cran (@1.5-5)                       
##  CRAN (R 3.4.1)                      
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.3)                      
##  CRAN (R 3.4.3)                      
##  cran (@1.1-1)                       
##  local                               
##  CRAN (R 3.4.0)                      
##  cran (@1.1.0)                       
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.0)                      
##  cran (@1.40.0)                      
##  cran (@1.0.2)                       
##  cran (@1.1.2)                       
##  cran (@1.10.0)                      
##  CRAN (R 3.4.2)                      
##  cran (@0.2.4)                       
##  cran (@5.35)                        
##  cran (@1.7.1)                       
##  cran (@1.21.0)                      
##  cran (@2.6.0)                       
##  CRAN (R 3.4.0)                      
##  CRAN (R 3.4.0)                      
##  cran (@0.12.15)                     
##  cran (@1.95-4.)                     
##  Github (karthik/rdrop2@32bab93)     
##  CRAN (R 3.4.0)                      
##  cran (@1.0.0)                       
##  cran (@0.8.7)                       
##  cran (@1.4.3)                       
##  cran (@0.2.15)                      
##  Github (tidyverse/rlang@49d7a34)    
##  Github (rstudio/rmarkdown@ee11543)  
##  cran (@0.10.14)                     
##  CRAN (R 3.4.3)                      
##  CRAN (R 3.4.0)                      
##  cran (@1.30.0)                      
##  CRAN (R 3.4.1)                      
##  CRAN (R 3.4.1)                      
##  cran (@1.38.3)                      
##  CRAN (R 3.4.0)                      
##  cran (@0.16.0)                      
##  CRAN (R 3.4.1)                      
##  cran (@1.4.4)                       
##  CRAN (R 3.4.1)                      
##  cran (@1.77)                        
##  local                               
##  local                               
##  local                               
##  cran (@1.1.6)                       
##  cran (@1.3.0)                       
##  cran (@1.8.1)                       
##  CRAN (R 3.4.3)                      
##  cran (@1.4.2)                       
##  cran (@0.8.0)                       
##  cran (@0.2.3)                       
##  CRAN (R 3.4.0)                      
##  local                               
##  cran (@1.6.0)                       
##  local                               
##  cran (@0.5.0)                       
##  cran (@0.3.0)                       
##  cran (@3.46.0)                      
##  cran (@2.1.1)                       
##  cran (@3.98-1.)                     
##  CRAN (R 3.4.0)                      
##  cran (@1.8-2)                       
##  cran (@0.18.0)                      
##  cran (@2.1.18)                      
##  cran (@1.24.0)
R> mdHeader("`utils::sessionInfo()`", level = 2)

utils::sessionInfo()

R> utils::sessionInfo()
## R version 3.4.3 (2017-11-30)
## Platform: x86_64-apple-darwin15.6.0 (64-bit)
## Running under: macOS High Sierra 10.13.3
## 
## Matrix products: default
## BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
## LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
## 
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## attached base packages:
## [1] parallel  stats4    stats     graphics  grDevices utils     datasets 
## [8] methods   base     
## 
## other attached packages:
##  [1] hexbin_1.27.1              bindrcpp_0.2.0.9000       
##  [3] dplyr_0.7.4.9000           purrr_0.2.4               
##  [5] readr_1.1.1                tidyr_0.8.0               
##  [7] tibble_1.4.2               ggplot2_2.2.1             
##  [9] tidyverse_1.1.1            knitr_1.20                
## [11] bcbioRNASeq_0.1.7          DEGreport_1.15.3          
## [13] quantreg_5.35              SparseM_1.77              
## [15] DESeq2_1.18.1              bcbioBase_0.1.4           
## [17] SummarizedExperiment_1.8.1 DelayedArray_0.4.1        
## [19] matrixStats_0.52.2         Biobase_2.38.0            
## [21] GenomicRanges_1.30.3       GenomeInfoDb_1.14.0       
## [23] IRanges_2.12.0             S4Vectors_0.16.0          
## [25] BiocGenerics_0.24.0       
## 
## loaded via a namespace (and not attached):
##   [1] basejump_0.3.1                R.utils_2.6.0                
##   [3] tidyselect_0.2.3              RSQLite_2.0                  
##   [5] AnnotationDbi_1.40.0          htmlwidgets_1.0              
##   [7] grid_3.4.3                    BiocParallel_1.12.0          
##   [9] devtools_1.13.4               munsell_0.4.3                
##  [11] preprocessCore_1.40.0         codetools_0.2-15             
##  [13] withr_2.1.1                   colorspace_1.3-2             
##  [15] BiocInstaller_1.28.0          rstudioapi_0.7               
##  [17] assertive.base_0.0-7          rdrop2_0.8.1.9999            
##  [19] labeling_0.3                  tximport_1.6.0               
##  [21] GenomeInfoDbData_0.99.1       mnormt_1.5-5                 
##  [23] bit64_0.9-7                   pheatmap_1.0.8               
##  [25] rprojroot_1.2                 Matrix.utils_0.9.6           
##  [27] R6_2.2.2                      assertive.sets_0.0-3         
##  [29] locfit_1.5-9.1                AnnotationFilter_1.2.0       
##  [31] bitops_1.0-6                  reshape_0.8.7                
##  [33] assertthat_0.2.0              scales_0.5.0                 
##  [35] nnet_7.3-12                   gtable_0.2.0                 
##  [37] affy_1.56.0                   ensembldb_2.3.5              
##  [39] rlang_0.2.0.9001              MatrixModels_0.4-1           
##  [41] genefilter_1.60.0             GlobalOptions_0.0.12         
##  [43] splines_3.4.3                 rtracklayer_1.38.3           
##  [45] lazyeval_0.2.1                acepack_1.4.1                
##  [47] broom_0.4.2                   checkmate_1.8.5              
##  [49] modelr_0.1.1                  yaml_2.1.18                  
##  [51] reshape2_1.4.3                GenomicFeatures_1.30.3       
##  [53] backports_1.1.2               httpuv_1.3.5                 
##  [55] Hmisc_4.1-1                   RMySQL_0.10.14               
##  [57] tools_3.4.3                   psych_1.7.8                  
##  [59] logging_0.7-103               affyio_1.48.0                
##  [61] assertive.strings_0.0-3       RColorBrewer_1.1-2           
##  [63] assertive.reflection_0.0-4    Rcpp_0.12.15                 
##  [65] plyr_1.8.4                    base64enc_0.1-3              
##  [67] progress_1.1.2                zlibbioc_1.24.0              
##  [69] RCurl_1.95-4.10               prettyunits_1.0.2            
##  [71] dendsort_0.3.3                rpart_4.1-11                 
##  [73] GetoptLong_0.1.6              viridis_0.5.0                
##  [75] cowplot_0.9.2                 haven_1.1.0                  
##  [77] grr_0.9.5                     ggrepel_0.7.0                
##  [79] cluster_2.0.6                 assertive.models_0.0-1       
##  [81] magrittr_1.5                  data.table_1.10.4-3          
##  [83] assertive.data_0.0-1          circlize_0.4.3               
##  [85] ProtGenerics_1.10.0           hms_0.3                      
##  [87] mime_0.5                      evaluate_0.10.1              
##  [89] xtable_1.8-2                  XML_3.98-1.10                
##  [91] readxl_1.0.0                  gridExtra_2.3                
##  [93] shape_1.4.4                   compiler_3.4.3               
##  [95] biomaRt_2.34.2                assertive.datetimes_0.0-2    
##  [97] R.oo_1.21.0                   htmltools_0.3.6              
##  [99] assertive_0.3-5               Formula_1.2-2                
## [101] geneplotter_1.56.0            lubridate_1.6.0              
## [103] DBI_0.8                       formatR_1.5                  
## [105] assertive.files_0.0-2         ComplexHeatmap_1.17.1        
## [107] assertive.numbers_0.0-2       Matrix_1.2-12                
## [109] vsn_3.46.0                    assertive.types_0.0-3        
## [111] assertive.matrices_0.0-1      R.methodsS3_1.7.1            
## [113] assertive.data.uk_0.0-1       bindr_0.1.0.9000             
## [115] forcats_0.2.0                 pkgconfig_2.0.1              
## [117] GenomicAlignments_1.14.1      foreign_0.8-69               
## [119] xml2_1.1.1                    assertive.data.us_0.0-1      
## [121] annotate_1.56.0               XVector_0.18.0               
## [123] rvest_0.3.2                   stringr_1.3.0                
## [125] digest_0.6.15                 ConsensusClusterPlus_1.42.0  
## [127] assertive.code_0.0-1          Biostrings_2.46.0            
## [129] rmarkdown_1.6.0.9008          cellranger_1.1.0             
## [131] htmlTable_1.11.2              edgeR_3.20.9                 
## [133] curl_3.1                      shiny_1.0.5                  
## [135] Rsamtools_1.30.0              rjson_0.2.15                 
## [137] jsonlite_1.5                  nlme_3.1-131                 
## [139] viridisLite_0.3.0             limma_3.34.9                 
## [141] pillar_1.1.0                  lattice_0.20-35              
## [143] Nozzle.R1_1.1-1               httr_1.3.1                   
## [145] survival_2.41-3               interactiveDisplayBase_1.16.0
## [147] glue_1.2.0                    bit_1.1-12                   
## [149] assertive.properties_0.0-4    stringi_1.1.6                
## [151] blob_1.1.0                    AnnotationHub_2.10.1         
## [153] latticeExtra_0.6-28           memoise_1.1.0

Jolliffe, Ian. 2002. Principal component analysis. Wiley Online Library.

Kolde, Raivo. 2015. Pheatmap: Pretty Heatmaps. https://CRAN.R-project.org/package=pheatmap.

Love, Michael I, Wolfgang Huber, and Simon Anders. 2014. “Moderated Estimation of Fold Change and Dispersion for RNA-seq Data with DESeq2.” Genome Biol. 15 (12): 550. doi:10.1186/s13059-014-0550-8.

Patro, Rob, Geet Duggal, Michael I Love, Rafael A Irizarry, and Carl Kingsford. 2017. “Salmon Provides Fast and Bias-Aware Quantification of Transcript Expression.” Nat. Methods 14 (4): 417–19. doi:10.1038/nmeth.4197.

Robinson, Mark D, and Alicia Oshlack. 2010. “A Scaling Normalization Method for Differential Expression Analysis of RNA-seq Data.” Genome Biol. 11 (3): R25. doi:10.1186/gb-2010-11-3-r25.

Soneson, Charlotte, Michael I Love, and Mark D Robinson. 2016. “Differential Analyses for RNA-seq: Transcript-Level Estimates Improve Gene-Level Inferences.” F1000Res. 4 (December). doi:10.12688/f1000research.7563.1.

Wickham, Hadley. 2009. Ggplot2: Elegant Graphics for Data Analysis. Use R. Springer New York. doi:10.1007/978-0-387-98141-3.